I=-I ./include -I /usr/local/cern/root/include -I /usr/local/cern/geant4.9.3.p01/include
L=-L/usr/local/cern/root/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lGui -pthread -lm -ldl -rdynamic

all: 3pi0cd

clean:
	rm build/*

3pi0cd: main.o Analyze.o DataReader.o
	g++ -o ./bin/3p0adcbd ./build/*.o $L

main.o:
	g++ -c -o ./build/main.o main.cpp $I

DataReader.o:
	g++ -c -o ./build/DataReader.o ./src/DataReader.cpp $I
	
Analyze.o:
	g++ -c -o ./build/Analyze.o ./src/Analyze.cpp $I
	
makeWhole:
	g++ -o makeWhole makeWhole.cpp $I $L
